using UnityEngine;
using System.Collections;

public class Logo : MonoBehaviour {
	
	public Texture background;
	public int countdown = 0;
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
		countingDown();	
	}
	
	void OnGUI()
	{
		GUI.Box(new Rect(0,0,Screen.width,Screen.height), background);
		
	}
	
	void countingDown()
	{
	
		if(countdown == 32)
		{
			
			Application.LoadLevel(1);
			
		}
		countdown++;
		
	}
	
}
